import baseApi from './baseApi'

export default {
  findForce(parms) {
    return baseApi.getApi('/force/find', parms);
  },
  me() {
    return baseApi.getApi('/user/me');
  },
  fixInfo(info) {
    return baseApi.postApi('/user/saveUserInfo', info);
  },
  testLogin(code) {
    return baseApi.postApi('/user/testLogin', code);
  },
  wxLogin(code) {
    return baseApi.postApi('/user/wxLogin', code);
  },
  findUser(param) {
    return baseApi.getApi('/user/find', {
      page: 1,
      size: 10000,
      params: param
    });
  },
  setSp(userId) {
    return baseApi.getApi('/user/setSp',{
      id: userId
    })
  }
}